﻿<%@ Page Title="" Language="C#" MasterPageFile="~/List.Master" AutoEventWireup="true" CodeBehind="AreaMaintance.aspx.cs" Inherits="SGRapidForm.Foundation.AreaMaintance" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cpHeader" runat="server">
    <script src="AreaMaintance.js" type="text/javascript"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cpBody" runat="server">
 <div class="ui-menu">
        <uc:Menu ID="menu1" runat="server" DataFile="../Views/Foundation/Menu/AreaMaintance.xml"
            PageCode="AreaMaintance" />
    </div>
    <div class="ui-wrapper">
        <div id="listall" class="ui-content-item ui-content-item-selected">
            <dx:ASPxTreeList ID="tlAreaList" Width="800px" ClientInstanceName="tlAreaList" KeyFieldName="Keyid"
                ParentFieldName="ParentKeyid" OnCustomCallback="tlAreaList_CustomCallback" runat="server">
                <Columns>
                    <dx:TreeListDataColumn FieldName="AreaName" VisibleIndex="0" Caption="地区名称" />
                    <dx:TreeListDataColumn FieldName="AreaCode" VisibleIndex="1" Caption="地区编码" />
                    <dx:TreeListDataColumn FieldName="HelpCode" VisibleIndex="2" Caption="地区助记码" />
                    <dx:TreeListDataColumn FieldName="AdminAreacd" VisibleIndex="3" Caption="地区级别编码" />
                    <dx:TreeListDataColumn FieldName="AdminAreaName" VisibleIndex="4" Caption="地区级别" />
                    <dx:TreeListCheckColumn FieldName="IsSys" VisibleIndex="5" Caption="是否系统数据" HeaderStyle-HorizontalAlign="Center">
                        <PropertiesCheckEdit DisplayTextChecked="true" DisplayTextUnchecked="false" />
                    </dx:TreeListCheckColumn>
                </Columns>
                <ClientSideEvents NodeDblClick="dbClick" NodeClick="sgClick" />
                <SettingsPager Mode="ShowPager" PageSize="10" />
                <Styles>
                    <PagerTopPanel>
                        <BorderBottom BorderStyle="Solid" />
                    </PagerTopPanel>
                    <PagerBottomPanel>
                        <BorderTop BorderStyle="Solid" />
                    </PagerBottomPanel>
                    <AlternatingNode Enabled="true" />
                </Styles>
                <Settings GridLines="Both" />
                <SettingsBehavior AllowFocusedNode="true" />
            </dx:ASPxTreeList>
        </div>
    </div>
    <div id="search" class="ui-content-item">
        <ul class="ui-list">
            <li>
                <dx:ASPxLabel ID="lblAreaCode" runat="server" Text="类别编码：" AssociatedControlID="txtAreaCode" />
            </li>
            <li>
                <dx:ASPxTextBox ID="txtAreaCode" ClientInstanceName="txtAreaCode"
                    runat="server" Width="120px">
                </dx:ASPxTextBox>
            </li>
            <li>
                <dx:ASPxLabel ID="lblAreaName" runat="server" Text="类别名称：" AssociatedControlID="txtAreaName" />
            </li>
            <li>
                <dx:ASPxTextBox ID="txtAreaName" ClientInstanceName="txtAreaName"
                    runat="server" Width="120px">
                </dx:ASPxTextBox>
            </li>
            <li>
                <dx:ASPxLabel ID="lblIsSys" runat="server" Text="是否系统数据：" />
            </li>
            <li>
                <dx:ASPxRadioButtonList ID="rblIsSys" ClientInstanceName="rblIsSys" runat="server"
                    RepeatDirection="Horizontal" RepeatLayout="Table" Width="120">
                    <Items>
                        <dx:ListEditItem Text="是" Value="true" />
                        <dx:ListEditItem Text="否" Value="false" />
                    </Items>
                    <Paddings Padding="0" />
                </dx:ASPxRadioButtonList>
            </li>
        </ul>
        <ul class="sl-floatcenter clearfix">
            <li class="sl-floatcenter-item">
                <dx:ASPxButton ID="btnSubmit" ClientInstanceName="btnSubmit" runat="server" Text="查 询"
                    AutoPostBack="false">
                    <ClientSideEvents Click="doSubmittedToSearch" />
                </dx:ASPxButton>
            </li>
            <li class="sl-floatcenter-item">
                <dx:ASPxButton ID="btnReset" ClientInstanceName="btnReset" runat="server" Text="重 置"
                    AutoPostBack="false">
                    <ClientSideEvents Click="doResetToSearch" />
                </dx:ASPxButton>
            </li>
        </ul>
    </div>
</asp:Content>
